package com.mingdong.first.waiguan.hometheater;

public class HomeTheaterFacade {

	private DVDPlayer dvdPlayer;
	private Popcorn popcorn;
	private Projector projector;
	private Screen screen;
	private Stereo stereo;
	private TheaterLights theaterLights;
	
	public HomeTheaterFacade(){
		dvdPlayer = DVDPlayer.getInstence();
		popcorn = Popcorn.getInstence();
		projector = Projector.getInstance();
		screen = Screen.getInstance();
		stereo = Stereo.getInstance();
		theaterLights = TheaterLights.getInstance();
	}
	
	public void getReady(){
		dvdPlayer.on();
		popcorn.on();
		projector.on();
		screen.down();
		stereo.setVol(10);
	}
	
	public void end(){
		dvdPlayer.off();
		popcorn.off();
		projector.off();
		screen.up();
		stereo.setVol(0);
		theaterLights.bright();
	}
	
	public void display(){
		dvdPlayer.play();
	}
	public void pause(){
		dvdPlayer.pause();
	}
}
